package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.OrderQuery;
import com.coffee.order.api.sku.result.OrderResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface OrderService {

	Page<OrderResult> getPager(OrderQuery param, PagerInfo pr);
	
	Integer count(OrderQuery param);
	
	OrderResult getDetail(Integer id);
	
	List<OrderResult> getList(OrderQuery param, PagerInfo pr);
	
	List<OrderResult> getList(OrderQuery param);
	
	List<OrderResult> getList();

	void delete(Integer id);

	void addOrUpdate(OrderResult result)throws BusinessException;
	
	Map<Integer,OrderResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,OrderResult> getItemMap();
	
}